package com.bl.weilan.dao.model;

import com.bl.weilan.common.enums.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liangweikang on 2018/1/6.
 */
@Entity
@Data
@Table(name = "employee")
@ApiModel(value = "EmployeeEntity", description = "用户")
@DynamicInsert
@DynamicUpdate
public class EmployeeEntity {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "用户状态")
    private UserStatus status;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "行业")
    private String institution;

    @ApiModelProperty(value = "联系人姓名")
    private String contacter;

    @ApiModelProperty(value = "是否是vip用户")
    private int vip;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;


}